﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Runtime.Serialization;

namespace GenericModels
{
    [DataContract(IsReference = false)]
    public class Employee : Person
    {
        private int employeeId;
        private String title;

        //constructor
        public Employee()
        {
            this.employeeId = 0;
            this.title = "slacker";
        }

        //constructor
        public Employee(int cpr, string address, string phoneNo, string fName, string lName, string email, string cityName, int postalCode, int employeeId, string title)
            : base(cpr, address, phoneNo, fName, lName, email, cityName, postalCode)
        {
            this.employeeId = employeeId;
            this.title = title;
        }

        [DataMember]
        public int EmployeeId
        {
            get { return employeeId; }
            set { employeeId = value; }
        }

        [DataMember]
        public string Title
        {
            get { return title; }
            set { title = value; }
        }
    }
}
